package com.gz.domain;

public class Employee {
    /**
    id int PRIMARY key auto_increment,
    empid varchar(50) not NULL DEFAULT'',
    pwd char(32) not NULL DEFAULT '',
   `name` varchar(50) NOT NULL DEFAULT '' ,
    job VARCHAR(50) not NULL DEFAULT ''*/

    private int id;
    private String empId;
    private String pwd;
    private String name;
    private String job;

    public Employee(){//注意！！！一定要有这个并且要有public，否则会报错

    }//无参构造器，底层Apache-dbutils反射需要

    public Employee(int id,String empId,String pwd,String name,String job) {
        this.job = job;
        this.name = name;
        this.pwd = pwd;
        this.empId = empId;
        this.id = id;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getempId() {
        return empId;
    }

    public void setempId(String empId) {
        this.empId = empId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", empid='" + empId + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                '}';
    }
}
